home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineButton2_1503 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  373 b   |  19 lines

  1. on(release){
  2.    if(_root.money >= 10000 && _root.gotTower != 1)
  3.    {
  4.       _root.gotTower = 1;
  5.       _root.tower._visible = true;
  6.       messo = "Got 100 Hp!";
  7.       _root.money -= 10000;
  8.       _root.castleMaxHp += 100;
  9.    }
  10.    else if(_root.gotTower == 1)
  11.    {
  12.       messo = "Already have it!";
  13.    }
  14.    else
  15.    {
  16.       messo = "Not enough money!";
  17.    }
  18. }
  19.